package cn.edu.lzu.service;


import cn.edu.lzu.common.assist.DataPage;
import cn.edu.lzu.common.assist.ResponseResult;
import cn.edu.lzu.entity.Unit;

import javax.xml.transform.Result;
import javax.xml.ws.Response;
import java.util.List;

public interface UnitService {
    DataPage selectPageUnit(int pageSize, int currentPageNum);

    long selectMaxUnitId();

    int insertUnit(Unit unit);

    ResponseResult updateUnitDisabled(boolean disabled, long unitId);

    int deleteUnitById(long unitId);

    int deleteBatchUnitsByIds(String unitIds);

    int updateBatchEnabledUnitsByIds(String unitIds);

    int updateBatchDisabledUnitsByIds(String unitIds);

    ResponseResult registeUnit(Unit unit);

    Unit selectUnitById(long unitId);

    List<Unit> selectUnitByName(Unit unit);

    List<Unit> getUnitsByProvinceId(Long provinceId);

    List<Unit> getUnitsByAreaId(Long areaId);

    List<Unit> getUnitsByCityId(Long cityId);
}
